package physics.collision;

import model.objects.GameObject;
import model.objects.Level;


/**
 * Describes how the hero would respond to collisions.
 * @author geo4
 *
 */
public class HeroCollisionStrategy implements CollisionStrategy {

    @Override
    public void collisionAction (Level level, CollisionEvent collisionEvent) {
        if (!collisionEvent.collided()) {
            // TODO check that this logic is valid
            ((GameObject) collisionEvent.getCollidingObject()).setOnGround(false);
        }
    }

}
